// ConeDialog.cpp : implementation file
//

#include "stdafx.h"
#include "test.h"
#include "ConeDialog.h"
#include "CubeFilter.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CConeDialog dialog


CConeDialog::CConeDialog(Mesh3D * mesh,CWnd* pParent /*=NULL*/)
	: CDialog(CConeDialog::IDD, pParent),malla(mesh)
{
	//{{AFX_DATA_INIT(CConeDialog)
	m_slopes = 1.0f;
	m_stacks = 1.0f;
	//}}AFX_DATA_INIT
}


void CConeDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConeDialog)
	DDX_Text(pDX, IDC_SLOPES, m_slopes);
	DDV_MinMaxFloat(pDX, m_slopes, 1.f, 100.f);
	DDX_Text(pDX, IDC_STACKS, m_stacks);
	DDV_MinMaxFloat(pDX, m_stacks, 1.f, 100.f);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CConeDialog, CDialog)
	//{{AFX_MSG_MAP(CConeDialog)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConeDialog message handlers

void CConeDialog::OnOK() 
{
	ConeFilter filter;
	UpdateData(TRUE);
	filter(malla,m_slopes,m_stacks);
	CDialog::OnOK();
}
